package com.syx.service.implementation;

import com.syx.dao.GoodsDao;
import com.syx.entity.Goods;
import com.syx.entity.User;
import com.syx.service.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class GoodsServiceImpl implements GoodsService {
    @Resource
    private GoodsDao dao;

    @Override
    public List list(Map map) {
        return dao.list(map);
    }

    @Override
    public User login(User user) {
        return dao.login(user);
    }

    @Override
    public List typeList() {
        return dao.typeList();
    }

    @Override
    public List brandList() {
        return dao.brandList();
    }

    @Override
    public int add(Goods goods) {
        return dao.add(goods);
    }
}
